package com.ruoyi.demo.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 学生信息对象 demo_student
 * 
 * @author zhangshu
 * @date 2021-01-25
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("demo_student")
public class DemoStudent extends BaseEntity implements Serializable {

private static final long serialVersionUID=1L;


    /** 编号 */
    @TableId(value = "student_id")
    private Long studentId;

    /** 学生名称 */
    @Excel(name = "学生名称")
    private String studentName;

    /** 年龄 */
    @Excel(name = "年龄")
    private Long studentAge;

    /** 爱好（0代码 1音乐 2电影） */
    @Excel(name = "爱好" , readConverterExp = "0=代码,1=音乐,2=电影", prompt = "0代码 1音乐 2电影")
    private String studentHobby;

    /** 性别（0男 1女 2未知） */
    @Excel(name = "性别" , readConverterExp = "0=男,1=女,2=未知", prompt = "0=男,1=女,2=未知")
    private String studentSex;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态" , readConverterExp = "0=正常,1=停用", prompt = "0=正常,1=停用")
    private String studentStatus;

    /** 生日 */
    @Excel(name = "生日" , width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date studentBirthday;

    /** 用户ID */
    @Excel(name = "用户序号", cellType = Excel.ColumnType.NUMERIC, prompt = "用户编号" ,type = Excel.Type.IMPORT)
    private Long userId;

    /** 部门ID */
    @Excel(name = "部门编号", type = Excel.Type.IMPORT)
    private Long deptId;

}
